package com.level2app.ui.welcome;

import android.graphics.Paint;

import com.level2app.base.BaseActivity;
import com.level2app.base.BaseViewModel;
import com.level2app.databinding.ActivityFinishSignUpBinding;
import com.level2app.utils.JumpIntent;

/**
 * 注册完成
 */
public class FinishSignUpActivity extends BaseActivity<ActivityFinishSignUpBinding, BaseViewModel> {

    @Override
    protected BaseViewModel bindModel() {
        return getViewModel(this, BaseViewModel.class);
    }

    @Override
    protected void initInject() {
        getActivityComponent().inject(this);
    }

    @Override
    protected void initData() {
        initTitleBar();
        binding.emailAddressTv.getPaint().setFlags(Paint.UNDERLINE_TEXT_FLAG);
        binding.emailAddressTv.getPaint().setAntiAlias(true);
    }

    @Override
    protected void initClick() {
        super.initClick();
        viewModel.onDelayClick(binding.signUpTv, o -> {
            JumpIntent.jump(this, SignNameActivity.class);
        });
        viewModel.onDelayClick(binding.emailAddressTv, o -> {
            //h5页面
        });
    }
}